<div id="reservationLiftMachineModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b "><span><vc:i18n name="预约电梯管理" namespace="reservationLiftMachine"></vc:i18n></span>
                </h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span><vc:i18n name='预约方式'
                                                                                      namespace='reservationLiftMachine'></vc:i18n></span>
                                </label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="reservationLiftMachineInfo.resWay">
                                        <option selected disabled value="">{{vc.i18n('选择预约方式','reservationLiftMachine')}}</option>
                                        <option v-for="(item, index) in resWayList" :key="index" :value="item.statusCd">
                                            {{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span><vc:i18n name='人员类型'
                                                                                      namespace='reservationLiftMachine'></vc:i18n></span>
                                </label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="reservationLiftMachineInfo.personWay">
                                        <option selected disabled value="">{{vc.i18n('选择人员类型','reservationLiftMachine')}}</option>
                                        <option v-for="(item, index) in personWayList" :key="index" :value="item.statusCd">
                                            {{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row" v-if="reservationLiftMachineInfo.personWay && reservationLiftMachineInfo.personWay != '2002'">
                                <label class="col-sm-2 col-form-label text-right"><span><vc:i18n name='房屋'
                                                                                                 namespace='reservationLiftMachine'></vc:i18n></span>
                                </label>
                                <div class="col-sm-3">
                                    <input v-model="reservationLiftMachineInfo.roomName" type="text"
                                           disabled :placeholder="vc.i18n('必填，请选择房屋','reservationLiftMachine')" class="form-control">
                                </div>
                                <div class="col-sm-1">
                                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_selectRoom()">选择</button>
                                </div>
                            </div>
                            <div class="form-group row" v-if="reservationLiftMachineInfo.personWay && reservationLiftMachineInfo.personWay != '2002'">
                                <label class="col-sm-2 col-form-label text-right"><span><vc:i18n name='目标楼层'
                                                                                      namespace='reservationLiftMachine'></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="reservationLiftMachineInfo.targetLayer" type="number"
                                           :placeholder="vc.i18n('必填，请输入目标楼层','reservationLiftMachine')" class="form-control">
                                </div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                        v-on:click="reservationLiftMachine()"><i class="fa fa-check"></i>&nbsp;<span><vc:i18n
                                        name="预约"></vc:i18n></span></button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                        data-dismiss="modal"><span><vc:i18n name="取消"></vc:i18n></span></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
